/*!
 * Page: mine/setting/setting
 * License: MIT
 * Created: 2019-09-17 14:21
 */

@import '../../var';
page {
  background-color: #f4f5f5;
}

.user-setting {
  padding-bottom: 180rpx;
  .wxCheat {
    margin-top: 20rpx;
  }
  .item {
    display: flex;
    align-items: center;
    padding: 0 22rpx 0 30rpx;
    background-color: $bgcolor-light;
    & > text {
      width: 150rpx;
      color: $info-color;
      line-height: 28rpx;
    }
    &.log {
      padding-right: 0;
    }
    .logs {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding-right: 20rpx;
      border-bottom: 1px solid rgba(235, 235, 235, 1);
      .list {
        display: flex;
        flex: 1;
        flex-wrap: wrap;
        padding: 15rpx 0 20rpx 5rpx;
        .logitem {
          margin: 5rpx 5rpx;
          padding: 12rpx 18rpx;
          color: $text-color;
          font-size: 24rpx;
          background-color: #f4f5f5;
          border-radius: 6rpx;
        }
      }
      image {
        width: 14rpx;
        height: 24rpx;
      }
    }
    &.input {
      align-items: center;
      padding-right: 0;
      & > text {
        width: 130rpx;
        color: $info-color;
        line-height: 28rpx;
      }
      .rightBox {
        width: 100%;
        padding: 36rpx 22rpx 36rpx 0;
        border-bottom: 1px solid rgba(235, 235, 235, 1);
        input,
        textarea {
          color: #1a1a1a;
          font-size: 30rpx;
          line-height: 30rpx;
        }
        input {
          padding-left: 10rpx;
        }
      }
      &.picker {
        view {
          padding-top: 0;
          .picker {
            display: block;
            padding-left: 10rpx;
          }
        }
      }
      &.textarea {
        &.ios {
          text {
            margin-top: 19rpx;
          }
        }
        view {
          padding-top: 0;
          border-bottom: none;
        }
        align-items: flex-start;
        padding-top: 36rpx;
      }
    }
    &.avatar {
      justify-content: space-between;
      padding-top: 43rpx;
      padding-bottom: 43rpx;
      border-bottom: 1px solid rgba(235, 235, 235, 1);
      .image {
        display: flex;
        width: 75rpx;
        height: 75rpx;
        background-color: $bgcolor-gray;
        border-radius: 50%;
      }
      .action {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        padding-left: 30rpx;
        image {
          width: 14rpx;
          height: 24rpx;
        }
      }
    }
  }
  .submit {
    background-color: transparent;
    button {
      margin-bottom: 20rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: $primary-color;
      &[disabled]:not([type]) {
        background-color: #e4e5e5;
      }
    }
  }
}

.padl10 {
  padding-left: 10rpx !important;
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 311rpx;
  background-color: #fff;
  border-bottom: 0.5rpx solid $border-color;
  .bg {
    width: 180rpx;
    height: 180rpx;
    border: 1rpx solid $border-color;
    border-radius: 8rpx;
    .cam {
      display: block;
      width: 49rpx;
      height: 43rpx;
      margin: 48rpx auto 20rpx;
    }
    .tips {
      width: 100%;
      height: 24rpx;
      color: #cccccc;
      font-size: 20rpx;
      text-align: center;
    }
  }
  #image-cropper {
    border-radius: 8rpx;
  }
}
